package com.ruoyi.work.mapper;

import java.util.List;
import com.ruoyi.work.domain.WorkInvoice;

/**
 * 申请开票Mapper接口
 * 
 * @author ruoyi
 * @date 2021-12-27
 */
public interface WorkInvoiceMapper {
    /**
     * 查询申请开票
     *
     * @param invoiceId 申请开票主键
     * @return 申请开票
     */
    public WorkInvoice selectWorkInvoiceByInvoiceId(Long invoiceId);
    public List<WorkInvoice> selectWorkInvoiceByInvoiceIds(String[]  invoiceId);


    /**
     * 查询申请开票列表
     *
     * @param workInvoice 申请开票
     * @return 申请开票集合
     */
    public List<WorkInvoice> selectWorkInvoiceList(WorkInvoice workInvoice);

    /**
     * 新增申请开票
     *
     * @param workInvoice 申请开票
     * @return 结果
     */
    public int insertWorkInvoice(WorkInvoice workInvoice);

    /**
     * 修改申请开票
     *
     * @param workInvoice 申请开票
     * @return 结果
     */
    public int updateWorkInvoice(WorkInvoice workInvoice);

    /**
     * 删除申请开票
     *
     * @param invoiceId 申请开票主键
     * @return 结果
     */
    public int deleteWorkInvoiceByInvoiceId(Long invoiceId);

    /**
     * 批量删除申请开票
     *
     * @param invoiceIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkInvoiceByInvoiceIds(String[] invoiceIds);

    /**
     * 查询销账发票
     *
     * @param incomingId 销账ID
     * @return 结果
     */
    public List<WorkInvoice> selectInvoiceByCancel(Long incomingId);

    public List<WorkInvoice> selectInvoicePaperByCancel(WorkInvoice workInvoice);
}